﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class SystemConstant
    {
        /// <summary>
        /// 进入模式
        /// </summary>
        public static int DeviceInNo = 0;

        /// <summary>
        /// 驶出模式
        /// </summary>
        public static int DeviceOutNo = 1;

        /// <summary>
        /// EcmdPin模式
        /// </summary>
        public static int EcmdPinMode = 0;

        /// <summary>
        /// EcmdI2C模式
        /// </summary>
        public static int EcmdI2CMode = 1;

        //Msg
        /// <summary>
        /// 车牌无法识别
        /// </summary>
        public static string MsgPlateNotRecog = "车牌无法识别";

        /// <summary>
        /// 车牌部分识别
        /// </summary>
        public static string MsgPlatePartRecog = "车牌部分识别";

        /// <summary>
        /// 外来车辆
        /// </summary>
        public static string MsgForeignVehicles = "外来车辆";

        /// <summary>
        /// 黑名单车辆
        /// </summary>
        public static string MsgBalcklistVehicles = "黑名单车辆";

        public static string EcmdPinSetOn = "http://{0}/ecmd?pin+set+k{1}+on";
        public static string EcmdPinSetOff = "http://{0}/ecmd?pin+set+k{1}+off";
        public static string EcmdPinGet = "http://{0}/ecmd?pin+get+k{1}";

        public static string EcmdI2CSetOn = "http://{0}/ecmd?i2c+wbd+87+{1}+1";
        public static string EcmdI2CSetOff = "http://{0}/ecmd?i2c+wbd+87+{1}+0";
        public static string EcmdI2CGet = "http://{0}/ecmd?i2c+rbd+87+{1}";
    }
}
